<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>

<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}
</style>

</head>
<body>



		<div class="container-fluid" data-ng-controller="skuListCtrl as Model">
		
		<div class="row">
			<div class="col-sm-4">

			<div class="row">
				<div class="col-sm-12">
					<nav class="nav">
						<query-like data="Model.dataMaster" place-holder="模糊查询..." class="pull-left"></query-like>

				</nav>
				</div>
			</div>
			
			<div class="row">
				<div class="col-sm-12">

					<div class="table-responsive">
						<table class="table table-hover table-condensed" style="margin:0px;">
							<thead>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
								<tr>
									<th>#</th>
									<th hidden="hidden">rationSize</th>
									<th>物料编码</th>
									<th>名称</th>
									<th hidden="hidden">规格型号</th>
								</tr>
							</thead>
							<tbody>
								<tr data-ng-class="{true:'active'}[Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)]"
									data-ng-click="Model.dataMaster.onRowClick(row,$event);Model.gridRowClick({'rowIndex':Model.dataMaster.rows.indexOf(row),'rowID':row.fID.value})"
									data-ng-dblclick="Model.dataMaster.onRowDblclick(row,$event);Model.gridRowDblClick({'rowIndex':Model.dataMaster.rows.indexOf(row),'rowID':row.fID.value})" 
									data-ng-repeat="row in Model.dataMaster.rows">

									<td style="width: 20px;">
										<span class="glyphicon glyphicon-hand-right" data-ng-if="Model.dataMaster.getCurrentIndex()==Model.dataMaster.rows.indexOf(row)" aria-hidden="true"></span>
										<span data-ng-if="Model.dataMaster.getCurrentIndex()!=Model.dataMaster.rows.indexOf(row)">{{Model.dataMaster.rows.indexOf(row)+1}}</span>
									</td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.rationSize.value"></span></td>
									<td style="width: 100px;"><span data-ng-bind="row.itemNo.value"></span></td>
									<td style="width: 200px;" title="{{row.itemProperty.value}}"><span data-ng-bind="row.itemName.value"></span></td>
									<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.itemProperty.value"></span></td>
								</tr>

							</tbody>

							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
							</tfoot>

						</table>
					</div>


				</div>

			</div>

		<!-- 分页组件 -->
		<div class="row">
			<div class="col-sm-12">

				<pag-ination data="Model.dataMaster" first-text="首页"
					previous-text="上一页" next-text="下一页" last-text="末页"></pag-ination>

			</div>
		</div>


			</div>
			<div class="col-sm-8">

				<!-- 子表按钮菜单 -->
				<div class="row">
					<div class="col-sm-12">
						<h3 style="margin-top:10px;">物料分类特征</h3>

					</div>
				</div>

				<!-- 子表 -->
				<div class="row">
					<div class="col-sm-12">

					<div class="table-responsive">
						<table class="table table-hover table-condensed" data-readonly="true"
							style="cellpadding: 0px; cellspacing: 0px;">
							<thead>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>

								<tr>
									<th>#</th>
									<th>特征</th>
									<th>描述</th>
									<th>数据类型</th>
									<th>字符长度</th>
									<th>小数位数</th>
									<th>必填项</th>
								</tr>
							</thead>
							<tbody>
								<tr data-ng-class="{true:'active'}[Model.dataMaster.currentIndex==Model.dataMaster.rows.indexOf(row)]"
									data-ng-click="Model.dataDetail.onRowClick(row,$event);Model.gridRowClick({'rowIndex':Model.dataDetail.rows.indexOf(row),'rowID':row.fID.value})"
									data-ng-dblclick="Model.dataDetail.onRowDblclick(row,$event);Model.gridRowDblClick({'rowIndex':Model.dataDetail.rows.indexOf(row),'rowID':row.fID.value})" 
									data-ng-repeat="row in Model.dataDetail.rows">
									
									<td style="width: 10px;">
										<span data-ng-show="Model.dataDetail.currentIndex==Model.dataDetail.rows.indexOf(row)" class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
										<span data-ng-show="Model.dataDetail.currentIndex!=Model.dataDetail.rows.indexOf(row)">{{Model.dataDetail.rows.indexOf(row)+1}}</span>
									</td>

									<td style="width: 100px;">{{row.properEntry.value}}</td>
									<td style="width: 300px;">{{row.pentryLabel.value}}</td>
									<td style="width: 100px;">{{row.fieldType.value}}</td>
									<td style="width: 100px;">{{row.fieldLength.value}}</td>
									<td style="width: 100px;">{{row.fieldDecimals.value}}</td>
									<td style="width: 100px;">{{row.fieldRequired.value}}</td>

								</tr>

							</tbody>
							<tfoot>
								<tr>
									<th colspan="99"  style="padding:0px;">
									</th>
								</tr>
							
							</tfoot>

						</table>
					</div>

					</div>
				</div>

<hr>

				<div class="row">
					<div class="col-sm-12">
						<nav class="nav">
						<ul class="pagination navbar-left buttonBar">
							<li>
								<div class="btn-group" role="toolbar">
									<shiro:hasPermission name="/inventory/fileItem/sku:create">
									<button type="button" class="btn btn-primary " data-ng-click="Model.add()">
										<span class="glyphicon glyphicon-plus"></span> 生成SKU数据档案
									</button>
									</shiro:hasPermission>
									<shiro:hasPermission name="/inventory/fileItem/sku:delete">
									<button ng-if="false" type="button" class="btn btn-default" data-ng-click="Model.remove()">
										<span class="glyphicon glyphicon-trash"></span> 删除
									</button>
									<button ng-if="Model.dataSKU.getCount()>0" type="button" class="btn btn-danger" data-ng-click="Model.clear()">
										<span class="glyphicon glyphicon-trash"></span> 清空SKU数据档案
									</button>
									</shiro:hasPermission>
									<shiro:hasPermission name="/inventory/fileItem/sku:save">
									<button type="button" class="btn btn-default" data-ng-click="Model.edit()" ng-disabled="Model.dataSKU.getCurrentID()==null">
										<span class="glyphicon glyphicon-edit"></span> 修改
									</button>
									</shiro:hasPermission>
								</div>
							</li>
						</ul>
						<shiro:hasPermission name="/inventory/fileItem/sku:query">
							<query-like data="Model.dataSKU" place-holder="模糊查询..."></query-like>
						</shiro:hasPermission>
	
					</nav>
					</div>
				</div>
		
				<div class="row">
					<div class="col-sm-12">
		
						<div class="table-responsive">
							<table class="table table-hover table-condensed" style="margin:0px;">
								<thead>
									<tr>
										<th colspan="99"  style="padding:0px;">
										</th>
									</tr>
									<tr>
										<th>#</th>
										<th><input type="checkbox" data-ng-model="checkboxValue" data-ng-click="Model.checkboxClick($event)"></th>
										<th>规格</th>
										<th>条形码</th>
										<th hidden="hidden">日期</th>
										<th>售价</th>
										<th>库存地</th>
									</tr>
								</thead>
								<tbody>
									<tr data-ng-show="row.userdata.recordState!='delete'"
										data-ng-class="{true:'active'}[Model.dataSKU.currentIndex==Model.dataSKU.rows.indexOf(row)]"
										data-ng-click="Model.dataSKU.onRowClick(row,$event);Model.gridRowClick({'rowIndex':Model.dataSKU.rows.indexOf(row),'rowID':row.fID.value})"
										data-ng-dblclick="Model.dataSKU.onRowDblclick(row,$event);Model.gridRowDblClick({'rowIndex':Model.dataSKU.rows.indexOf(row),'rowID':row.fID.value})" 
										data-ng-repeat="row in Model.dataSKU.rows">
		
										<td style="width: 20px;">
										<span class="glyphicon glyphicon-hand-right" data-ng-if="Model.dataSKU.getCurrentIndex()==Model.dataSKU.rows.indexOf(row)" aria-hidden="true"></span>
										<span data-ng-if="Model.dataSKU.getCurrentIndex()!=Model.dataSKU.rows.indexOf(row)">{{Model.dataSKU.rows.indexOf(row)+1}}</span>
										</td>
										<td style="width: 50px;"><input type="checkbox" data-ng-model="row.userdata.checked"></td>
										<td style="width: 200px;"><span data-ng-bind="row.itemProperty.value"></span></td>
										<td style="width: 100px;"><span data-ng-bind="row.barcode.value"></span></td>
										<td style="width: 100px;" hidden="hidden"><span data-ng-bind="row.orderDate.value"></span></td>
										<td style="width: 100px;"><span data-ng-bind="row.salePrice.value"></span></td>
										<td style="width: 200px;"><span data-ng-bind="row.floorNo.value"></span></td>
									</tr>
		
								</tbody>
		
								<tfoot>
									<tr>
										<th colspan="99"  style="padding:0px;">
										</th>
									</tr>
								</tfoot>
		
							</table>
						</div>
		
					</div>
				</div>
			
			</div>
		</div>

		</div>
		
		
<br>




</body>

</html>

